package cn.com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

/**
 * @author liufl E-mail:Huberier@allpyra.com
 * @version 创建时间：2017年7月28日 下午3:53:21 类说明
 */

@SpringBootApplication
@EnableZuulProxy
//@EnableOAuth2Sso//启用安全认证
public class ZuulGatewayApplication {
	
	/**
	 * http://localhost:9001/cloud-client-consumer/test
	 * http://localhost:9001/cloud-client-consumer/feign/张三
	 * 网关入口——指定spring.application.name（consumerFeignAndCfg）
	 * 负载spring-cloud-client-consumerFeignAndCfg(spring.application.name=consumerFeignAndCfg,端口8081)
	 * 	  和spring-cloud-hystrix(spring.application.name=consumerFeignAndCfg,端口9002)
	 * @param args
	 */
	public static void main(String[] args) {
		SpringApplication.run(ZuulGatewayApplication.class, args);
	}
}
